#!/bin/bash
if [ -d "${OSS_PATH}" ]; then 
/usr/bin/curl -o /dev/null --retry 1 --max-time 6 -w %{http_code} -s "http://127.0.0.1:$1/oss/index.html" | grep -c 200
fi